<?php
namespace Admin\Controller;
use Think\Controller;
class CountController extends Controller {
	//小米后台首页显示
    public function index(){
    	
			 $sku_goods          = D('SkuGoods');

			  $Goodstype = D('Goodstype');

			  $goodsclasses = $Goodstype->where($where)->order($order)->limit($limit)->select();


			  $count1 = $count = $sku_goods->count();;

			 if (!empty($goodsclasses)) {
			 	
			 	$count= count($goodsclasses);


			 }

			  $proudct          = D('Proudct');

			  $count2			= $proudct->count();





			 $data = date('Y-m-d H:i:s');

			 $this->assign('data',$data);

			 $this->assign('count',$count);

			  $this->assign('count1',$count1);

			  $this->assign('count2',$count2);

            $this->display();
    }


}